package com.bailan.pojo;

import java.io.Serializable;
import java.util.Objects;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author BaiLan
 * @since 2022:05:24
 */
@Getter
@Setter

  public class Student implements Serializable {

    private static final long serialVersionUID = 1L;
  @TableId("S_id")
      private String id;
  @TableField("S_password")
    private String password;

    private String sName;

    private String sSex;

    private Integer sAge;

    private String sAddress;

    private String sEmail;

    private String cId;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    Student student = (Student) o;
    return Objects.equals(id, student.id) && Objects.equals(password, student.password);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, password);
  }

  @Override
  public String toString() {
    return "Student{" +
            "id='" + id + '\'' +
            ", password='" + password + '\'' +
            ", sName='" + sName + '\'' +
            ", sSex='" + sSex + '\'' +
            ", sAge=" + sAge +
            ", sAddress='" + sAddress + '\'' +
            ", sEmail='" + sEmail + '\'' +
            ", cId='" + cId + '\'' +
            '}';
  }
}
